$(document).ready(function() {
	$("#demo").validate({
		rules:{
			"users.password":{
				required: true,
                minlength: 6
			},
			"repeatPassword":{
				required: true,
                minlength: 6,
                equalTo: "#password"
			}
		}
	});

});